﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="TopMenu.ascx.cs" Inherits="ITViet.Web.Controls.TopMenu" %>
<div id="header">
	<h1>
		<asp:ImageButton ID="ibtnLogo" runat="server" ImageUrl="~/images/Logo.png" Width="100px"
			PostBackUrl="~/Pages/Home.aspx" />
	</h1>
	<!-- logo here -->
	<em class="ttip">IT Việt Computer</em><!--tool tip for logo-->
	<p class="company_name">
		<span style="color: #FCE868;">IT</span> <span style="color: #FB3C3C;">Việt</span>
		<span style="color: #6F56AF;">Computer</span>
	</p>
	<!-- end of call us toll free-->
	<div class="menu">
		<div class="menu_end">
			<ul class="nav">
				<asp:Repeater runat="server" ID="rptMenu" OnItemDataBound="rptMenu_ItemDataBound">
					<ItemTemplate>
						<li><a runat="server" id="lnkMenuItem" href="javascript:void(0)" class="" title='<%# Eval("Title") %>'>
							<%# Eval("Title") %></a></li>
					</ItemTemplate>
				</asp:Repeater>
			</ul>
		</div>
	</div>
	<!--end of navigation-->
</div>

<script type="text/javascript">
	function getCurrentMainElement(id, link) {
		__doPostBack('FrontMainMenuChange', id + '|' + link);
	}

	function getRootUrl() {
		var href = window.location.href.toLowerCase();
		var ind = href.indexOf("/pages");
		href = href.substring(0, ind + 6);
		return href;
	}

	function enterKeyword(e) {
		var keynum;
		if (window.event)  // IE
		{
			keynum = e.keyCode;
		}
		else if (e.which)  // Firefox/Opera/ 
		{
			keynum = e.which;
		}
		if (keynum == 13) {
			checkKeyword();
			return false;
		}
	}
</script>

